package com.hxd.otc.module.my.presenter;

import com.hxd.otc.base.BaseBean;
import com.hxd.otc.common.enums.BankType;
import com.hxd.otc.module.my.contract.AddOtherPayContract;
import com.hxd.otc.module.my.model.BankModel;
import com.hxd.otc.mvp.base.BasePresenter;
import com.hxd.otc.net.BaseObserver;

/**
 * Created by lzy on 2018/6/8 0008.
 * description ${TODO}
 * <p>
 * Changed by somebody on 2018/6/8 0008
 * description ${TODO}
 */
public class AddOtherPayPresenter extends BasePresenter<AddOtherPayContract.View> implements AddOtherPayContract.Presenter {
    public AddOtherPayPresenter(AddOtherPayContract.View view) {
        super(view);
    }

    @Override
    public void start() {
    }

    @Override
    public void addOtherPay(String areaName,String name, String account, String payPassword, String remark, BankType bankType) {
//        BankModel.getInstance().addBank(areaName,null, null, account, null, name, payPassword, remark, bankType, new BaseObserver<Object>() {
//            @Override
//            public void onNext(String msg, Object o) {
//                mView.addOtherPaySuccess(msg);
//            }
//
//            @Override
//            public void onError(int errType, String errMessage) {
//                mView.showToast(errMessage);
//            }
//        }, mView.<BaseBean>bindAutoDispose());
    }
}
